﻿using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using SlamCms.SharePoint.Publishing.WebParts;

namespace SlamCms.SharePoint.Publishing.Pages
{
    public partial class PublisherDetail : LayoutsPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (Request.QueryString["keywords"] != null)
               addUserDetail.RoleKeywords = Request.QueryString["keywords"] != null ? Request.QueryString["keywords"] : "Publishers";


            if (Request.QueryString["userID"] != null)
            {
                addUserDetail.Mode = ControlMode.Edit;
                addUserDetail.UserID = int.Parse(Request.QueryString["userID"]);
            }
            else
                addUserDetail.Mode = ControlMode.New;
        }
    }
}
